package com.crr.mapper;

import com.crr.bean.Order;
import com.crr.common.crud.BaseMapper;
import org.apache.ibatis.annotations.Mapper;

@Mapper
public interface OrderMapper extends BaseMapper<Order> {

    /**
     * 更新订单状态
     * @param id
     * @return
     */
    int updateStatus(int id);

    /**
     * 根据用户id查订单
     * @param orderNum
     * @return
     */
    Order getOrder(String orderNum);
}
